package com.ruoyi.project.syl_Sxl.syldept.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;
/*
* 科室表  表名：syl_dept
* */
public class SylDept extends BaseEntity {
    private Long deptId;//科室ID
    private String deptName;//科室名称
    private String deptCode;//科室编码
    private Long deptNum;//当前挂号量
    private String deptLeader;//负责人
    private String deptPhone;//手机号
    private String status;//状态

    public SylDept() {
    }

    public SylDept(Long deptId, String deptName, String deptCode, Long deptNum, String deptLeader, String deptPhone, String status) {
        this.deptId = deptId;
        this.deptName = deptName;
        this.deptCode = deptCode;
        this.deptNum = deptNum;
        this.deptLeader = deptLeader;
        this.deptPhone = deptPhone;
        this.status = status;
    }

    @Override
    public String toString() {
        return "SylDept{" +
                "deptId=" + deptId +
                ", deptName='" + deptName + '\'' +
                ", deptCode='" + deptCode + '\'' +
                ", deptNum=" + deptNum +
                ", deptLeader='" + deptLeader + '\'' +
                ", deptPhone='" + deptPhone + '\'' +
                ", status='" + status + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SylDept sylDept = (SylDept) o;
        return Objects.equals(deptId, sylDept.deptId) &&
                Objects.equals(deptName, sylDept.deptName) &&
                Objects.equals(deptCode, sylDept.deptCode) &&
                Objects.equals(deptNum, sylDept.deptNum) &&
                Objects.equals(deptLeader, sylDept.deptLeader) &&
                Objects.equals(deptPhone, sylDept.deptPhone) &&
                Objects.equals(status, sylDept.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(deptId, deptName, deptCode, deptNum, deptLeader, deptPhone, status);
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }


    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public Long getDeptNum() {
        return deptNum;
    }

    public void setDeptNum(Long deptNum) {
        this.deptNum = deptNum;
    }

    public String getDeptLeader() {
        return deptLeader;
    }

    public void setDeptLeader(String deptLeader) {
        this.deptLeader = deptLeader;
    }

    public String getDeptPhone() {
        return deptPhone;
    }

    public void setDeptPhone(String deptPhone) {
        this.deptPhone = deptPhone;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
